Skip to content

Python: Whitespace attachment fixes#7051

Merged
greg-at-moderne merged 5 commits intomainfrom
greg-py-whitespace-fix
Mar 19, 2026
Merged

Python: Whitespace attachment fixes#7051
greg-at-moderne merged 5 commits intomainfrom
greg-py-whitespace-fix

Conversation

@greg-at-moderne
Copy link
Copy Markdown
Contributor

@greg-at-moderne greg-at-moderne commented Mar 19, 2026

What's changed?

Similar to JavaScript's #6245, adding a test to ensure Python source code parsing adheres to the OpenRewrite expectation of attaching the whitespace to the outermost element.

What's your motivation?

Enforce the rule for Python too.

@greg-at-moderne greg-at-moderne self-assigned this Mar 19, 2026
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Mar 19, 2026
@greg-at-moderne greg-at-moderne marked this pull request as ready for review March 19, 2026 14:21
@greg-at-moderne greg-at-moderne merged commit 552e629 into main Mar 19, 2026
1 of 2 checks passed
@greg-at-moderne greg-at-moderne deleted the greg-py-whitespace-fix branch March 19, 2026 14:21
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant